package org.javaboy.webflux_mongo.dao;

import org.javaboy.webflux_mongo.model.User;
import org.springframework.data.mongodb.repository.ReactiveMongoRepository;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
import reactor.core.publisher.Flux;

@EnableMongoRepositories
public interface UserDao extends ReactiveMongoRepository<User, String> {

    Flux<User> findUsersByUsernameStartingWith(String username);
}
